import request from '@/utils/request'
/**
 * 获取待评价订单信息
 * @param {String} id 订单id
 * @returns
 */
export const findEvaluateByOrder = (id) => {
  return request('/evaluate/order', 'get', { id })
}
/**
 * 获取订单评价信息
 * @param {String} id 订单id
 * @returns
 */
export const findEvaluateInfo = (id) => {
  return request('/evaluate', 'get', { id })
}
/**
 * 发布评价
 * @param {String} orderId 订单id
 * @returns
 */
export const publishEvaluate = (orderId, evaluates) => {
  return request(`/evaluate/${orderId}`, 'post', { evaluates })
}
/**
 * 发布评价--图片上传
 * @param
 * @returns
 */
export const uploadImg = () => {
  return request('/upload', 'post')
}
